/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Message;

import java.io.Serializable;

/**
 *
 * @author CUCAINHO
 */
public class Message implements  Serializable{
    private int type;
    private int option;
    private Object data;
    
    
    public int GetType(){
        return this.type;
    }
    
    public int GetOption(){
        return this.option;
    }
    
    public Object GetData(){
        return this.data;
    }
    
    public void SetType(int type){
        this.type = type;
    }
    public void SetOption(int option){
        this.option = option;
    }
    public void SetData(Object data){
        this.data = data;
    }
    public  Message(){
        this.type = 0;
        this.option = 0;
        this.data = new String();
        
    }
    
    public  Message(int type,  int option  , Object data){
        this.type = type;
        this.option = option;
        this.data = data;
    }
    
    public Message GetMessage(){
        
        return this;
        
    }
    
    public void SetMessage(Message ms){
        this.type = ms.type;
        this.option = ms.option;
        this.data = ms.data;
    }
            
}
